#pragma once
#include "common.h"
class Keypad
{
public:
    Keypad();

    virtual ~Keypad();

    virtual long Bind(long hwnd, long mode) = 0;

    virtual long UnBind();

    virtual long GetKeyState(long vk_code) = 0;

    virtual long KeyDown(long vk_code) = 0;

    // virtual long GetKeyState(long vk_code);

    virtual long KeyUp(long vk_code) = 0;

    virtual long WaitKey(long vk_code, unsigned long time_out) = 0;

    virtual long KeyPress(long vk_code) = 0;

    static long KEYPAD_NORMAL_DELAY;
    static long KEYPAD_NORMAL2_DELAY;
    static long KEYPAD_WINDOWS_DELAY;
    static long KEYPAD_DX_DELAY;

protected:
    long _hwnd;
    int _mode;
};
